package com.clock.ui.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.View.OnClickListener;

import com.clock.photowall.R;
import com.clock.ui.activity.WaterfallActivity;

public class CustomViewFragment extends BaseFragment implements OnClickListener{

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		View rootView = inflater.inflate(R.layout.fragment_custom_view, null);
		rootView.findViewById(R.id.btn_waterfall).setOnClickListener(this);
		return rootView;
	}

	@Override
	public void onClick(View v) {
		int viewID = v.getId();
		if (viewID == R.id.btn_waterfall) {
			Intent waterfall = new Intent(getActivity(), WaterfallActivity.class);
			startActivity(waterfall);
		}
	}
}
